import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import VueLazyload from 'vue-lazyload'

// 引用vant
import './plugins/vant.js'
// 引入全局样式
import './common/stylus/index.styl'

// fastClick
import FastClick from 'fastclick'
FastClick.attach(document.body)

// VueLazyLoad  Vue懒加载
Vue.use(VueLazyload, {
  loading: require('./assets/default.png') // 预加载图片
})

Vue.config.productionTip = false
Vue.prototype.$http = axios

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
